<script>
    for (var i = 1; i <= 100; i++) {
        if (i % 10 != 0) {
            document.write(i)
        } else {
            document.write(i + "<br />")
        }

    }
</script>